/**
 * Copyright (c) 2018 软唐 All rights reserved.
 * <p>
 * https://www.softtown.cn
 * <p>
 * 版权所有，侵权必究！
 */

package com.softtown.modules.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 注册表单
 *
 * @author Ding Ya Yong
 */
@Data
@ApiModel(value = "注册表单")
public class RegistDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "{sysuser.username.require}")
    private String username;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "{sms.mobile.require}")
    private String mobile;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "{sms.password.require}")
    private String password;

    @ApiModelProperty(value = "确认密码")
    @NotBlank(message = "{sms.newpwd.require}")
    private String newpwd;

    @ApiModelProperty(value = "短信验证码")
    @NotBlank(message = "{sms.smscode.require}")
    private String smscode;

    @ApiModelProperty(value = "是否勾选协议")
    @NotBlank(message = "{register.read.require}")
    private String read;
}